Tootsville::Integer-To-Byte-Vector

Function

Integer-To-Byte-Vector names a function, with lambda list (INTEGER &OPTIONAL (VECTOR (MAKE-ARRAY (CEILING (INTEGER-LENGTH INTEGER) 8) ELEMENT-TYPE (QUOTE (UNSIGNED-BYTE 8))))):

Convert INTEGER into VECTOR of (UNSIGNED-BYTE 8)

If VECTOR is supplied, it must be long enough to accept INTEGER without growing. Otherwise, the vector of the minimum length to hold INTEGER will be constructed.

The byte vector will be in big-endian (aka “network”) byte order.

File

Defined in file src/types/binary.lisp.